namespace JHT.EFMigrationTest.ClassLibrary1.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class UpdateClass_TeacherInfo : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Books", "MyGUID", c => c.Guid(nullable: false, identity: true));
            AddColumn("dbo.Books", "TimeStamp", c => c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"));
            AlterColumn("dbo.StudentsDetails", "Weight", c => c.Decimal(precision: 6, scale: 2));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.StudentsDetails", "Weight", c => c.Decimal(precision: 18, scale: 2));
            DropColumn("dbo.Books", "TimeStamp");
            DropColumn("dbo.Books", "MyGUID");
        }
    }
}
